class RankDataModel {
  String msg;
  num resCode;
  List<RankEntity> resObj;
  RankDataModel({
    this.msg,
    this.resCode,
    this.resObj
  });

  RankDataModel.fromJson(Map < String, dynamic > json):
        msg=json['msg'],
        resCode=json['resCode'],
        resObj=(json['resObj'] as List)?.map((l)=>RankEntity.fromJson(l))?.toList();
  Map <String, dynamic> toJson() => {
    'msg':msg,
    'resCode':resCode,
    'resObj':resObj?.map((it)=>it.toJson())?.toList()
  };
}

class RankEntity {
  num atmCount;
  num betCount;
  num betPayoutAmount;
  num betValidAmount;
  num betValidAmountByMonth;
  num depositAppCount;
  num depositFirstAmount;
  num depositFirstCount;
  num depositOnlineCount;
  num depositOnlineNumber;
  num depositPcCount;
  num depositQuickCount;
  num depositQuickNumber;
  num depositSecondAmount;
  num depositSecondCount;
  num depositWapCount;
  String domain;
  String nowDate;
  num profitAmount;
  num profitAmountByMonth;
  double topValue;
  num totalAtmAmount;
  num totalDepositAmount;
  num totalDepositCount;
  num totalRegistCount;
  num newClientTotalDeposit;
  num newClientTotalAtm;
  num newClientBetValidAmount;
  num newClientCount;
  RankEntity({
    this.atmCount,
    this.nowDate,
    this.betCount,
    this.betPayoutAmount,
    this.betValidAmount,
    this.betValidAmountByMonth,
    this.depositAppCount,
    this.depositFirstAmount,
    this.depositFirstCount,
    this.depositOnlineCount,
    this.depositOnlineNumber,
    this.depositPcCount,
    this.depositQuickCount,
    this.depositQuickNumber,
    this.depositSecondAmount,
    this.depositSecondCount,
    this.depositWapCount,
    this.domain,
    this.profitAmount,
    this.profitAmountByMonth,
    this.topValue,
    this.totalAtmAmount,
    this.totalDepositAmount,
    this.totalDepositCount,
    this.totalRegistCount,
    this.newClientTotalDeposit,
    this.newClientTotalAtm,
    this.newClientBetValidAmount,
    this.newClientCount
  });

  RankEntity.fromJson(Map < String, dynamic > json):
        nowDate=json['nowDate'],
        atmCount=json['atmCount'],
        betCount=json['betCount'],
        betPayoutAmount=json['betPayoutAmount'],
        betValidAmount=json['betValidAmount'],
        betValidAmountByMonth=json['betValidAmountByMonth'],
        depositAppCount=json['depositAppCount'],
        depositFirstAmount=json['depositFirstAmount'],
        depositFirstCount=json['depositFirstCount'],
        depositOnlineCount=json['depositOnlineCount'],
        depositOnlineNumber=json['depositOnlineNumber'],
        depositPcCount=json['depositPcCount'],
        depositQuickCount=json['depositQuickCount'],
        depositQuickNumber=json['depositQuickNumber'],
        depositSecondAmount=json['depositSecondAmount'],
        depositSecondCount=json['depositSecondCount'],
        depositWapCount=json['depositWapCount'],
        domain=json['domain'],
        profitAmount=json['profitAmount'],
        profitAmountByMonth=json['profitAmountByMonth'],
        topValue=json['topValue'].toDouble(),
        totalAtmAmount=json['totalAtmAmount'],
        totalDepositAmount=json['totalDepositAmount'],
        totalDepositCount=json['totalDepositCount'],
        newClientTotalDeposit=json['newClientTotalDeposit'],
        newClientTotalAtm=json['newClientTotalAtm'],
        newClientBetValidAmount=json['newClientBetValidAmount'],
        newClientCount=json['newClientCount'],
        totalRegistCount=json['totalRegistCount'];
  Map <String, dynamic> toJson() => {
    'atmCount':atmCount,
    'betCount':betCount,
    'betPayoutAmount':betPayoutAmount,
    'betValidAmount':betValidAmount,
    'betValidAmountByMonth':betValidAmountByMonth,
    'depositAppCount':depositAppCount,
    'depositFirstAmount':depositFirstAmount,
    'depositFirstCount':depositFirstCount,
    'depositOnlineCount':depositOnlineCount,
    'depositOnlineNumber':depositOnlineNumber,
    'depositPcCount':depositPcCount,
    'depositQuickCount':depositQuickCount,
    'depositQuickNumber':depositQuickNumber,
    'depositSecondAmount':depositSecondAmount,
    'depositSecondCount':depositSecondCount,
    'depositWapCount':depositWapCount,
    'domain':domain,
    'profitAmount':profitAmount,
    'profitAmountByMonth':profitAmountByMonth,
    'topValue':topValue,
    'totalAtmAmount':totalAtmAmount,
    'totalDepositAmount':totalDepositAmount,
    'totalDepositCount':totalDepositCount,
    'totalRegistCount':totalRegistCount,
    'totalAtmAmount':newClientTotalDeposit,
    'totalDepositAmount':newClientTotalAtm,
    'totalDepositCount':newClientBetValidAmount,
    'totalRegistCount':newClientCount,
    'nowDate': nowDate,
  };
}